﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using fideeraSoft.DAOimpl;
using fideeraSoft.DAO;
using fideeraSoft.Entities;

namespace fideeraSoft.BO
{
    public class EnvasadoBO
    {
        EnvasadoDAO envasadoDao;

        public EnvasadoBO()
        {
            envasadoDao = new EnvasadoDAOSQLimpl();
        }




        public void altaEnvasado(Envasado envasado)
        {
            envasadoDao.altaEnvasado(envasado);
        }

        public int buscarNuevoUltimoIdEnvasadoEnBD()
        {
            return envasadoDao.buscarNuevoUltimoIdEnvasadoEnBD();
        }

        public void updateFechaFinEnvasadoPorId(string id, DateTime dateTimeFin)
        {
            envasadoDao.updateFechaFinEnvasadoPorId(id,dateTimeFin);
        }

        public void updateCantidadPaquetesEnvasadosPorId(string id, string cantPaq)
        {
            envasadoDao.updateCantidadPaquetesEnvasadosPorId(id, cantPaq);
        }

        public void updaceObservacionFinEnvasadoEnEnvasadoPorId(string idEnvasado, string observacionFin)
        {
            envasadoDao.updaceObservacionFinEnvasadoEnEnvasadoPorId(idEnvasado,  observacionFin);
        }

        public void eliminarTodosLosEnvasadosEnDb()
        {
            this.envasadoDao.eliminarTodosLosEnvasadosEnDb();
        }
    }
}
